#pragma once

#include "ConsolePrerequisites.h"

class IConsoleScreen
{
public:
	virtual void Clear() = 0;
	virtual void Print( const csString & message ) = 0;
	virtual void PrintError( const csString & message );
	virtual void PrintWarning( const csString & message );
	virtual void PrintVerbose( const csString & message );
	virtual void PrintLinefeed();
	virtual void PrintSeparation();
	virtual void Flush();
};


inline void IConsoleScreen::PrintError( const csString & message )
{
	Print( "Error : " + message );
}

inline void IConsoleScreen::PrintWarning( const csString & message )
{
	Print( "Warning : " + message );
}

inline void IConsoleScreen::PrintVerbose( const csString & message )
{
	Print( "Verbose : " + message );
}

inline void IConsoleScreen::PrintLinefeed()
{
	Print("\n");
}

inline void IConsoleScreen::PrintSeparation()
{
	Print("------------------------------------------------------------");
}

inline void IConsoleScreen::Flush()
{
	// nothing to do
}



